<?php
/**
 * 系統名稱: Lotto 系統
 * 檔案說明: 專案管理-修改
 * $Author$
 * $Id$
 *
 */
include_once("../../config.inc.php");
$_LangPath = "Supplement";
include_once(__Admin_Path."/logincheck.php");
include_once(__Language_Path."/selectlanguage_admin.php");
include_once(__Common_Path."/SysParam.inc.php");

$arrPower = CheckUsePower("suppleout");
if($arrPower === false)ErrMsgOutputHTML("Error", "", 1);

$intRnd = time();
$arrCon = file($_KSysParam[SuppleUrl]."?rnd=".$intRnd);
if(trim($arrCon[0]) == ""){
	$title = "Error";
	$GLOBALS["errormessage"] = "Link Error";
	ErrMsgOutputHTML("Error", "", 1);
}

$strLink = $_KSysParam[SuppleUrl]."/member/hidden.php?rnd=".$intRnd."&key=".$arrCon[0]."&domain=".$_SERVER["HTTP_HOST"]."&userid=".$_SESSION["Admin_Info"] -> ID."&lang=".$_intLang;
?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title> New Document </title>
<script language="JavaScript">
<!--
function autologin(){
	location.href = "<?php print $strLink;?>";
}
//-->
</script>
</head>

<body onload="autologin()">
</body>
</html>